package com.yfqy.app.modules.address.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class AreaQueryDTO {

    private Integer parentId;

    private String areaName;

    @NotBlank(message = "地区级别不能为空")
    @Pattern(regexp = "^[1-3]$", message = "地区级别只能是省,市,区/县")
    private String areaLevel;

}
